<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/jquery-3.1.1.js"></script>
    <script type="text/javascript">
        function outlogin(urls) {
            $.ajax({
                type: "POST",
                url: urls,
                success: function (msg) {
                   window.location.reload();
//                    console.log(msg);
                }
            });
        }

    </script>
</head>
<body>
<!--<div style="width: 200px;height: 1000px ;border: 1px solid chartreuse">-->
{foreach $auth_par as $k => $v}
{if $v.controller != null && $v.method != null}
<div><a href="{$smarty.const.__MODULE__}/{$v.controller}/{$v.method}">{$v.name}</a></div>
{else}
<div>{$v.name}</div>
{/if}
{foreach $auth_son as $kk => $vv}
{if $vv.pid == $v.id}
<div style="padding-left: 20px;"><a href="{$smarty.const.__MODULE__}/{$vv.controller}/{$vv.method}"> {$vv.name}</a></div>
{/if}
{/foreach}
{/foreach}
<input type="button" onclick='outlogin("{$smarty.const.__CONTROLLER__}/outlogin")' value="退出">
<!--</div>-->
</body>
</html>